package com.yanghui.agent.agent.springboot.c.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @NacosValue(value = "${test}",autoRefreshed = true)
    private String test;

    @Autowired
    private RedissonClient redissonClient;

    @RequestMapping("/test")
    public String test(){
        return this.test;
    }
}
